package com.theaf.basemodule.common.model;

import com.theaf.core.annotation.FieldCn;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @Author:songwenke
 * @Description:
 * @Date:create in 14:49 2017/12/21
 * @Modified By:
 **/
@ApiModel("数据字典数据表")
@Entity
@Table(name = "sys_dic")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysDic {
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.SEQUENCE,generator = "user_id_req")
    @SequenceGenerator(name = "user_id_req", sequenceName = "sys_req")
    @FieldCn(value = "id")
    private long id;
    @FieldCn(value = "类型id")
    @Column(name = "tag")
    private String tag;
    @FieldCn(value = "编码")
    @Column(name = "code")
    private String code;
    @FieldCn(value = "名称")
    @Column(name = "name")
    private String name;
    @FieldCn(value = "备注")
    @Column(name = "remark")
    private String remark;
    @Column(name = "order_no")
    private int orderNo;
}
